* {
  margin: 0;
  padding: 0;
  list-style: none;
}

.slider {
  height: 360px;
  width: 720px;
  margin: 100px auto;
  position: relative;

  ul {
    perspective: 50000px;
    transform-style: preserve-3d;
    transition: all 1s ease;

    li {
      position: absolute;
      perspective: 50000px;
      transform-style: preserve-3d;
      transition: all 1s ease;

      img {
        height: 360px;
        width: 720px;
      }

      &:nth-child(1) img {
        transform: translateZ(180px);
      }

      &:nth-child(2) img {
        transform: rotateX(-90deg) translateZ(180px);
      }

      &:nth-child(3) img {
        transform: rotateX(-180deg) translateZ(180px);
      }

      &:nth-child(4) img {
        transform: rotateX(-270deg) translateZ(180px);
      }
    }
  }
}

.button-container {
  margin: 100px 0;
  text-align: center;

  .next {
    font-size: 20px;
    padding: 10px 20px;
  }
}
